package model;

import util.DateUtil;

import java.io.Serializable;
import java.util.Date;

public class Log implements Serializable {
    private static final long serialVersionUID = 1L;
    private Date time;
    private String type;
    private String operator;

    public Log(Date time, String type, String operator) {
        this.time = time;
        this.type = type;
        this.operator = operator;
    }

    @Override
    public String toString() {
        return String.format("[%s] 操作类型: %s, 操作人: %s",
                DateUtil.format(time), type, operator);
    }
}